﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

/// <summary>
/// 排班管理:班组设置基础输入参数
/// </summary>
public class TeamsettingBaseInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public virtual long? Id { get; set; }
    
    /// <summary>
    /// 班组编号
    /// </summary>
    public virtual string? TeamSettingNumber { get; set; }
    
    /// <summary>
    /// 班组类型
    /// </summary>
    public virtual long? TeamSettingType { get; set; }
    
    /// <summary>
    /// 班组名称
    /// </summary>
    public virtual string? TeamSettingName { get; set; }
    
    /// <summary>
    /// 班组组长
    /// </summary>
    public virtual string? TeamSettingLeader { get; set; }
    
    /// <summary>
    /// 班组人员
    /// </summary>
    public virtual long? TeamSettingMembers { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    public virtual string? TeamSettingNotes { get; set; }
    
}

/// <summary>
/// 排班管理:班组设置分页查询输入参数
/// </summary>
public class PageTeamsettingInput : BasePageInput
{
    /// <summary>
    /// 班组名称
    /// </summary>
    public string? TeamSettingName { get; set; }
    
    /// <summary>
    /// 选中主键列表
    /// </summary>
     public List<long> SelectKeyList { get; set; }
}

/// <summary>
/// 排班管理:班组设置增加输入参数
/// </summary>
public class AddTeamsettingInput
{
    /// <summary>
    /// 班组编号
    /// </summary>
    [MaxLength(32, ErrorMessage = "班组编号字符长度不能超过32")]
    public string? TeamSettingNumber { get; set; }
    
    /// <summary>
    /// 班组类型
    /// </summary>
    public long? TeamSettingType { get; set; }
    
    /// <summary>
    /// 班组名称
    /// </summary>
    [MaxLength(32, ErrorMessage = "班组名称字符长度不能超过32")]
    public string? TeamSettingName { get; set; }
    
    /// <summary>
    /// 班组组长
    /// </summary>
    [MaxLength(32, ErrorMessage = "班组组长字符长度不能超过32")]
    public string? TeamSettingLeader { get; set; }
    
    /// <summary>
    /// 班组人员
    /// </summary>
    public long? TeamSettingMembers { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [MaxLength(32, ErrorMessage = "备注字符长度不能超过32")]
    public string? TeamSettingNotes { get; set; }
    
}

/// <summary>
/// 排班管理:班组设置删除输入参数
/// </summary>
public class DeleteTeamsettingInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
}

/// <summary>
/// 排班管理:班组设置更新输入参数
/// </summary>
public class UpdateTeamsettingInput
{
    /// <summary>
    /// 主键Id
    /// </summary>    
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
    /// <summary>
    /// 班组编号
    /// </summary>    
    [MaxLength(32, ErrorMessage = "班组编号字符长度不能超过32")]
    public string? TeamSettingNumber { get; set; }
    
    /// <summary>
    /// 班组类型
    /// </summary>    
    public long? TeamSettingType { get; set; }
    
    /// <summary>
    /// 班组名称
    /// </summary>    
    [MaxLength(32, ErrorMessage = "班组名称字符长度不能超过32")]
    public string? TeamSettingName { get; set; }
    
    /// <summary>
    /// 班组组长
    /// </summary>    
    [MaxLength(32, ErrorMessage = "班组组长字符长度不能超过32")]
    public string? TeamSettingLeader { get; set; }
    
    /// <summary>
    /// 班组人员
    /// </summary>    
    public long? TeamSettingMembers { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>    
    [MaxLength(32, ErrorMessage = "备注字符长度不能超过32")]
    public string? TeamSettingNotes { get; set; }
    
}

/// <summary>
/// 排班管理:班组设置主键查询输入参数
/// </summary>
public class QueryByIdTeamsettingInput : DeleteTeamsettingInput
{
}

/// <summary>
/// 下拉数据输入参数
/// </summary>
public class DropdownDataTeamsettingInput
{
    /// <summary>
    /// 是否用于分页查询
    /// </summary>
    public bool FromPage { get; set; }
}

/// <summary>
/// 排班管理:班组设置数据导入实体
/// </summary>
[ExcelImporter(SheetIndex = 1, IsOnlyErrorRows = true)]
public class ImportTeamsettingInput : BaseImportInput
{
    /// <summary>
    /// 班组编号
    /// </summary>
    [ImporterHeader(Name = "班组编号")]
    [ExporterHeader("班组编号", Format = "", Width = 25, IsBold = true)]
    public string? TeamSettingNumber { get; set; }
    
    /// <summary>
    /// 班组类型 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? TeamSettingType { get; set; }
    
    /// <summary>
    /// 班组类型 文本
    /// </summary>
    [ImporterHeader(Name = "班组类型")]
    [ExporterHeader("班组类型", Format = "", Width = 25, IsBold = true)]
    public string TeamSettingTypeFkDisplayName { get; set; }
    
    /// <summary>
    /// 班组名称
    /// </summary>
    [ImporterHeader(Name = "班组名称")]
    [ExporterHeader("班组名称", Format = "", Width = 25, IsBold = true)]
    public string? TeamSettingName { get; set; }
    
    /// <summary>
    /// 班组组长
    /// </summary>
    [ImporterHeader(Name = "班组组长")]
    [ExporterHeader("班组组长", Format = "", Width = 25, IsBold = true)]
    public string? TeamSettingLeader { get; set; }
    
    /// <summary>
    /// 班组人员 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? TeamSettingMembers { get; set; }
    
    /// <summary>
    /// 班组人员 文本
    /// </summary>
    [ImporterHeader(Name = "班组人员")]
    [ExporterHeader("班组人员", Format = "", Width = 25, IsBold = true)]
    public string TeamSettingMembersFkDisplayName { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [ImporterHeader(Name = "备注")]
    [ExporterHeader("备注", Format = "", Width = 25, IsBold = true)]
    public string? TeamSettingNotes { get; set; }
    
}
